package com.brian.app_core_lib.appstarter.itask;

import com.brian.app_core_libstarter.application.task.ThreadTask;

import java.util.ArrayList;
import java.util.List;

/**
 * @ProjectName: PathFinder
 * @Package: com.brian.app_core_lib.appstarter.itask
 * @ClassName: Task
 * @Description: java类作用描述
 * @Author: Brian
 * @CreateDate: 2019/11/23 23:10
 * @UpdateUser: Brian
 * @UpdateDate: 2019/11/23 23:10
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public abstract class PfStarterTask extends ThreadTask {

    /*** 为了实现这种 调用封装 需要在这里 转换一下 ***/
    @Override
    public final List<Class<? extends ThreadTask>> dependsOn() {
        List<Class<? extends PfStarterTask>> classList = dependsOnThread();
        if(null != classList){
            List<Class<? extends ThreadTask>> ls = new ArrayList<>();
            ls.addAll(classList);
            return ls;
        }
        return null;
    }

    public List<Class<? extends PfStarterTask>> dependsOnThread() {
        return null;
    }

}
